package com.gdwProject.tankgame2;

import javax.swing.*;

/**
 * @author 关道伟
 * @version 1.0
 */
public class GdwTankGame02 extends JFrame {
    //定义MyPanel
    MyPanel myPanel = null;

    public static void main(String[] args) {

        GdwTankGame02 gdwTankGame01 = new GdwTankGame02();
    }

    public GdwTankGame02(){
        myPanel = new MyPanel();
        this.add(myPanel);
        this.setSize(1000,750);
        this.addKeyListener(myPanel);//监听键盘事件
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}
